/ MacWorld 1999 July
/ Macworld (1999-07).dmg / Shareware World / Info / For Developers / Mops 3.4.sea / Mops source / Toolbox classes / PopupMenu ![]() | < prev | next > |
MacBinary | 1998-02-10 | 2.4 KB | [TEXT/MSET] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Tue Feb 10 20:28:53 1998, modified Tue Feb 10 20:28:53 1998, creator 'MSET', type ASCII, 1821 bytes "PopupMenu" , at 0x79d 381 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [MSET] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 50 6f 70 75 70 4d | 65 6e 75 00 00 00 00 00 |..PopupM|enu.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 53 45 | 54 01 00 00 00 00 00 00 |.TEXTMSE|T.......|
|00000050| 00 00 00 00 00 07 1d 00 | 00 01 7d b1 06 af 55 b1 |........|..}...U.|
|00000060| 06 af 55 00 00 08 00 00 | 00 00 00 00 00 00 00 00 |..U.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 10 77 00 00 |........|.....w..|
|00000080| 5c 20 43 6c 61 73 73 20 | 50 6f 70 75 70 4d 65 6e |\ Class |PopupMen|
|00000090| 75 2e 20 20 54 68 69 73 | 20 76 65 72 73 69 6f 6e |u. This| version|
|000000a0| 20 68 61 6e 64 6c 65 73 | 20 70 6f 70 2d 75 70 20 | handles| pop-up |
|000000b0| 6d 65 6e 75 73 20 69 6e | 20 64 69 61 6c 6f 67 73 |menus in| dialogs|
|000000c0| 2e 0d 5c 20 49 66 20 77 | 65 20 65 76 65 72 20 6e |..\ If w|e ever n|
|000000d0| 65 65 64 20 6f 6e 65 20 | 73 6f 6d 65 77 68 65 72 |eed one |somewher|
|000000e0| 65 20 65 6c 73 65 2c 20 | 77 65 27 6c 6c 20 68 61 |e else, |we'll ha|
|000000f0| 76 65 20 74 6f 20 64 65 | 66 69 6e 65 20 61 20 73 |ve to de|fine a s|
|00000100| 75 62 63 6c 61 73 73 0d | 5c 20 77 69 74 68 20 64 |ubclass.|\ with d|
|00000110| 69 66 66 65 72 65 6e 74 | 20 48 49 54 3a 20 61 6e |ifferent| HIT: an|
|00000120| 64 20 4e 4f 52 4d 41 4c | 3a 20 6d 65 74 68 6f 64 |d NORMAL|: method|
|00000130| 73 2e 0d 0d 6e 65 65 64 | 09 64 69 61 6c 6f 67 2b |s...need|.dialog+|
|00000140| 0d 0d 66 6f 72 77 61 72 | 64 09 44 52 41 57 42 4f |..forwar|d.DRAWBO|
|00000150| 58 0d 0d 3a 70 72 6f 63 | 20 20 50 55 62 6f 78 50 |X..:proc| PUboxP|
|00000160| 72 6f 63 0d 09 69 2d 3e | 6c 20 20 64 72 61 77 62 |roc..i->|l drawb|
|00000170| 6f 78 20 20 20 3b 70 72 | 6f 63 0d 0d 66 72 6f 6d |ox ;pr|oc..from|
|00000180| 20 50 6f 70 55 70 4d 65 | 6e 75 4d 6f 64 20 20 69 | PopUpMe|nuMod i|
|00000190| 6d 70 6f 72 74 7b 20 20 | 50 4f 50 55 50 4d 45 4e |mport{ |POPUPMEN|
|000001a0| 55 20 20 7d 0d 0d 63 6f | 6d 70 69 6c 65 3a 20 50 |U }..co|mpile: P|
|000001b0| 6f 70 55 70 4d 65 6e 75 | 4d 6f 64 0d 74 72 75 65 |opUpMenu|Mod.true|
|000001c0| 20 73 65 74 49 6e 73 74 | 61 6c 6c 3a 20 50 6f 70 | setInst|all: Pop|
|000001d0| 55 70 4d 65 6e 75 4d 6f | 64 0d 0d 0d 6f 62 6a 50 |UpMenuMo|d...objP|
|000001e0| 74 72 09 54 48 45 4d 45 | 4e 55 20 20 63 6c 61 73 |tr.THEME|NU clas|
|000001f0| 73 5f 69 73 20 20 50 6f | 70 55 70 4d 65 6e 75 0d |s_is Po|pUpMenu.|
|00000200| 0d 3a 20 46 49 4e 44 2d | 4d 45 4e 55 20 20 7b 20 |.: FIND-|MENU { |
|00000210| 6c 69 6e 6b 20 69 74 65 | 6d 23 20 2d 2d 20 62 20 |link ite|m# -- b |
|00000220| 7d 0d 09 42 45 47 49 4e | 0d 09 09 6c 69 6e 6b 20 |}..BEGIN|...link |
|00000230| 6e 69 6c 50 20 3d 20 49 | 46 20 20 66 61 6c 73 65 |nilP = I|F false|
|00000240| 20 20 65 78 69 74 20 20 | 74 68 65 6e 0d 09 09 6c | exit |then...l|
|00000250| 69 6e 6b 20 2d 3e 20 74 | 68 65 4d 65 6e 75 0d 09 |ink -> t|heMenu..|
|00000260| 09 62 6f 78 23 3a 20 74 | 68 65 4d 65 6e 75 20 20 |.box#: t|heMenu |
|00000270| 69 74 65 6d 23 20 20 3d | 20 20 49 46 20 20 74 72 |item# =| IF tr|
|00000280| 75 65 20 20 45 58 49 54 | 20 20 54 48 45 4e 0d 09 |ue EXIT| THEN..|
|00000290| 09 46 2d 6c 69 6e 6b 3a | 20 74 68 65 4d 65 6e 75 |.F-link:| theMenu|
|000002a0| 20 20 2d 3e 20 6c 69 6e | 6b 0d 09 41 47 41 49 4e | -> lin|k..AGAIN|
|000002b0| 20 20 3b 0d 0d 3a 66 20 | 20 44 52 41 57 42 4f 58 | ;..:f | DRAWBOX|
|000002c0| 20 20 7b 20 64 6c 67 2d | 68 64 6c 20 69 74 65 6d | { dlg-|hdl item|
|000002d0| 23 20 2d 2d 20 7d 0d 09 | 09 5c 20 20 43 61 6c 6c |# -- }..|.\ Call|
|000002e0| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 50 52 4f 43 |ed from |the PROC|
|000002f0| 20 74 68 61 74 20 68 61 | 6e 64 6c 65 73 20 74 68 | that ha|ndles th|
|00000300| 65 20 75 73 65 72 20 69 | 74 65 6d 0d 09 09 5c 20 |e user i|tem...\ |
|00000310| 66 6f 72 20 61 20 70 6f | 70 2d 75 70 20 62 6f 78 |for a po|p-up box|
|00000320| 2e 0d 09 09 5c 20 69 74 | 65 6d 23 20 69 73 20 69 |....\ it|em# is i|
|00000330| 73 20 74 68 65 20 44 49 | 41 4c 4f 47 20 69 74 65 |s the DI|ALOG ite|
|00000340| 6d 23 2c 20 6e 6f 74 20 | 74 68 65 20 6d 65 6e 75 |m#, not |the menu|
|00000350| 20 69 74 65 6d 23 2e 0d | 09 64 6c 67 2d 68 64 6c | item#..|.dlg-hdl|
|00000360| 20 20 66 69 6e 64 2d 64 | 6c 67 20 20 30 45 58 49 | find-d|lg 0EXI|
|00000370| 54 0d 09 50 55 4d 2d 6c | 69 6e 6b 3a 20 74 68 69 |T..PUM-l|ink: thi|
|00000380| 73 5f 64 6c 67 20 20 69 | 74 65 6d 23 20 20 66 69 |s_dlg i|tem# fi|
|00000390| 6e 64 2d 6d 65 6e 75 20 | 20 20 30 65 78 69 74 0d |nd-menu | 0exit.|
|000003a0| 09 64 72 61 77 62 6f 78 | 3a 20 74 68 65 4d 65 6e |.drawbox|: theMen|
|000003b0| 75 20 20 20 3b 66 0d 0d | 65 6e 64 6c 6f 61 64 0d |u ;f..|endload.|
|000003c0| 0d 5c 20 54 45 53 54 49 | 4e 47 3a 0d 0d 5c 09 09 |.\ TESTI|NG:..\..|
|000003d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 20 50 6f 70 2d 75 70 |========|= Pop-up|
|000003e0| 20 4d 65 6e 75 73 20 3d | 3d 3d 3d 3d 3d 3d 3d 3d | Menus =|========|
|000003f0| 3d 3d 0d 0d 20 20 20 20 | 32 09 50 6f 70 55 70 4d |==.. |2.PopUpM|
|00000400| 65 6e 75 09 50 55 31 0d | 20 20 20 20 33 09 50 6f |enu.PU1.| 3.Po|
|00000410| 70 55 70 4d 65 6e 75 09 | 50 55 32 0d 20 20 20 20 |pUpMenu.|PU2. |
|00000420| 33 09 50 6f 70 55 70 4d | 65 6e 75 09 50 55 33 0d |3.PopUpM|enu.PU3.|
|00000430| 0d 0d 3a 20 4d 4d 4d 09 | 2e 22 20 6d 65 6e 75 20 |..: MMM.|." menu |
|00000440| 68 69 74 22 20 63 72 20 | 20 3b 0d 3a 20 4e 4e 4e |hit" cr | ;.: NNN|
|00000450| 09 2e 22 20 61 6e 6f 74 | 68 65 72 20 6d 65 6e 75 |.." anot|her menu|
|00000460| 20 68 69 74 21 21 22 20 | 63 72 20 20 3b 0d 0d 43 | hit!!" |cr ;..C|
|00000470| 46 41 53 28 09 6d 6d 6d | 20 6d 6d 6d 09 09 29 20 |FAS(.mmm| mmm..) |
|00000480| 20 31 20 35 20 37 20 69 | 6e 69 74 3a 20 50 55 31 | 1 5 7 i|nit: PU1|
|00000490| 0d 43 46 41 53 28 09 6d | 6d 6d 20 6d 6d 6d 20 6d |.CFAS(.m|mm mmm m|
|000004a0| 6d 6d 09 29 20 20 32 20 | 36 20 38 20 69 6e 69 74 |mm.) 2 |6 8 init|
|000004b0| 3a 20 50 55 32 0d 43 46 | 41 53 28 09 6e 6e 6e 20 |: PU2.CF|AS(.nnn |
|000004c0| 6e 6e 6e 20 6e 6e 6e 09 | 29 20 20 33 20 34 20 35 |nnn nnn.|) 3 4 5|
|000004d0| 20 69 6e 69 74 3a 20 50 | 55 33 0d 0d 3a 20 48 50 | init: P|U3..: HP|
|000004e0| 55 31 09 68 69 74 3a 20 | 70 75 31 20 20 3b 0d 3a |U1.hit: |pu1 ;.:|
|000004f0| 20 48 50 55 32 09 68 69 | 74 3a 20 70 75 32 20 20 | HPU2.hi|t: pu2 |
|00000500| 3b 0d 3a 20 48 50 55 33 | 09 63 72 20 2e 22 20 70 |;.: HPU3|.cr ." p|
|00000510| 75 33 20 68 69 74 21 21 | 22 20 20 68 69 74 3a 20 |u3 hit!!|" hit: |
|00000520| 70 75 33 20 20 3b 0d 0d | 0d 5c 09 09 3d 3d 3d 3d |pu3 ;..|.\..====|
|00000530| 3d 3d 3d 3d 3d 20 44 69 | 61 6c 6f 67 20 62 6f 78 |===== Di|alog box|
|00000540| 65 73 20 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0d 0d 20 20 |es =====|====.. |
|00000550| 20 20 36 09 64 69 61 6c | 6f 67 2b 09 44 31 0d 20 | 6.dial|og+.D1. |
|00000560| 20 20 20 34 09 64 69 61 | 6c 6f 67 2b 09 44 32 0d | 4.dia|log+.D2.|
|00000570| 0d 3a 20 51 51 51 09 09 | 32 30 20 62 65 65 70 20 |.: QQQ..|20 beep |
|00000580| 20 3b 0d 3a 20 57 57 57 | 09 09 20 31 20 62 65 65 | ;.: WWW|.. 1 bee|
|00000590| 70 20 20 3b 0d 3a 20 5a | 5a 5a 09 09 2e 22 20 75 |p ;.: Z|ZZ..." u|
|000005a0| 73 65 72 69 74 65 6d 20 | 68 69 74 22 20 63 72 20 |seritem |hit" cr |
|000005b0| 20 3b 0d 0d 0d 3a 20 43 | 4c 4f 53 45 31 20 20 20 | ;...: C|LOSE1 |
|000005c0| 20 63 6c 6f 73 65 3a 20 | 64 31 20 20 3b 0d 3a 20 | close: |d1 ;.: |
|000005d0| 43 4c 4f 53 45 32 20 20 | 20 20 63 6c 6f 73 65 3a |CLOSE2 | close:|
|000005e0| 20 64 32 20 20 3b 0d 0d | 43 46 41 53 28 09 71 71 | d2 ;..|CFAS(.qq|
|000005f0| 71 20 77 77 77 20 63 6c | 6f 73 65 31 20 74 6f 67 |q www cl|ose1 tog|
|00000600| 69 74 65 6d 20 68 70 75 | 31 20 68 70 75 32 09 29 |item hpu|1 hpu2.)|
|00000610| 20 20 20 33 30 30 20 69 | 6e 69 74 3a 20 64 31 0d | 300 i|nit: d1.|
|00000620| 43 46 41 53 28 09 71 71 | 71 20 77 77 77 20 63 6c |CFAS(.qq|q www cl|
|00000630| 6f 73 65 32 20 68 70 75 | 33 09 09 09 09 09 29 20 |ose2 hpu|3.....) |
|00000640| 20 20 33 30 31 20 69 6e | 69 74 3a 20 64 32 0d 0d | 301 in|it: d2..|
|00000650| 0d 3a 20 47 4f 0d 09 22 | 20 50 4d 74 65 73 74 2e |.: GO.."| PMtest.|
|00000660| 72 73 72 63 22 20 6f 70 | 65 6e 72 65 73 66 69 6c |rsrc" op|enresfil|
|00000670| 65 0d 0d 5c 20 53 65 74 | 20 75 70 20 64 69 61 6c |e..\ Set| up dial|
|00000680| 6f 67 73 3a 0d 0d 09 2b | 6d 6f 64 65 6c 65 73 73 |ogs:...+|modeless|
|00000690| 0d 09 67 65 74 6e 65 77 | 3a 20 64 31 20 20 67 65 |..getnew|: d1 ge|
|000006a0| 74 6e 65 77 3a 20 64 32 | 0d 0d 5c 20 53 65 74 20 |tnew: d2|..\ Set |
|000006b0| 75 70 20 70 6f 70 2d 75 | 70 20 6d 65 6e 75 73 3a |up pop-u|p menus:|
|000006c0| 0d 0d 09 67 65 74 6e 65 | 77 3a 20 70 75 31 20 20 |...getne|w: pu1 |
|000006d0| 67 65 74 6e 65 77 3a 20 | 70 75 32 20 20 67 65 74 |getnew: |pu2 get|
|000006e0| 6e 65 77 3a 20 70 75 33 | 0d 0d 5c 20 54 68 69 73 |new: pu3|..\ This|
|000006f0| 20 70 61 72 74 20 68 61 | 73 20 74 6f 20 62 65 20 | part ha|s to be |
|00000700| 64 6f 6e 65 20 61 66 74 | 65 72 20 47 65 74 4e 65 |done aft|er GetNe|
|00000710| 77 3a 20 6f 6e 20 74 68 | 65 20 64 69 61 6c 6f 67 |w: on th|e dialog|
|00000720| 28 73 29 0d 0d 09 64 31 | 20 6c 69 6e 6b 3a 20 70 |(s)...d1| link: p|
|00000730| 75 31 0d 09 64 31 20 6c | 69 6e 6b 3a 20 70 75 32 |u1..d1 l|ink: pu2|
|00000740| 0d 09 64 32 20 6c 69 6e | 6b 3a 20 70 75 33 20 20 |..d2 lin|k: pu3 |
|00000750| 3b 0d 09 0d 0d 3a 20 7a | 7a 0d 09 63 6c 6f 73 65 |;....: z|z..close|
|00000760| 3a 20 64 31 20 20 63 6c | 6f 73 65 3a 20 64 32 20 |: d1 cl|ose: d2 |
|00000770| 20 2d 6d 6f 64 65 6c 65 | 73 73 0d 09 63 6c 65 61 | -modele|ss..clea|
|00000780| 72 3a 20 6d 65 6e 75 62 | 61 72 20 20 64 72 61 77 |r: menub|ar draw|
|00000790| 3a 20 6d 65 6e 75 62 61 | 72 20 20 3b 0d 00 00 00 |: menuba|r ;....|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 00 00 00 01 42 | 00 00 00 42 00 00 00 3b |.......B|...B...;|
|00000810| 01 30 01 0b 0b 00 18 ff | fd 00 00 01 f2 0b 4d 65 |.0......|......Me|
|00000820| 6e 75 4d 6f 64 2e 74 78 | 74 74 74 39 33 6f 6e 73 |nuMod.tx|ttt93ons|
|00000830| 09 50 6f 70 75 70 4d 65 | 6e 75 02 00 00 00 50 61 |.PopupMe|nu....Pa|
|00000840| 72 74 53 49 54 21 00 00 | 00 00 00 00 00 00 00 01 |rtSIT!..|........|
|00000850| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 b3 66 c2 7a 00 00 | 00 00 00 00 01 7d 45 58 |...f.z..|.....}EX|
|00000880| 54 4d 53 45 54 60 00 05 | 01 ff 00 13 01 30 01 0b |TMSET`..|.....0..|
|00000890| 0b 00 18 ff fd 00 00 00 | 17 0f 53 63 69 65 6e 63 |........|..Scienc|
|000008a0| 65 20 61 6e 64 20 47 6f | 64 74 6e 73 74 63 68 6b |e and Go|dtnstchk|
|000008b0| 00 ff 00 ff 00 ff 00 ff | 00 00 00 54 45 58 54 4e |........|...TEXTN|
|000008c0| 49 53 49 60 00 0f 01 ff | 00 13 01 30 01 0b 0b 00 |ISI`....|...0....|
|000008d0| 18 ff fd 00 00 01 f2 0c | 44 65 62 75 67 6d 6f 64 |........|Debugmod|
|000008e0| 2e 74 78 74 74 39 33 6f | 6e 73 74 63 68 6b 00 ff |.txtt93o|nstchk..|
|000008f0| 00 ff 00 ff 00 ff 00 00 | 01 54 45 58 54 4e 49 53 |........|.TEXTNIS|
|00000900| 00 00 00 3e 00 00 00 00 | 00 00 00 00 00 00 00 00 |...>....|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 01 00 00 00 | 01 42 00 00 00 42 00 00 |........|.B...B..|
|00000950| 00 3b 00 5a 86 10 15 4e | 00 00 00 1c 00 32 00 00 |.;.Z...N|.....2..|
|00000960| 4d 49 46 4f 00 00 00 0a | 00 80 00 00 00 00 00 00 |MIFO....|........|
|00000970| 00 5a 8c ec 08 4d 69 73 | 63 49 6e 66 6f 00 00 00 |.Z...Mis|cInfo...|
+--------+-------------------------+-------------------------+--------+--------+